Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 25: Controlling Detail

../ch25/25fig09.gif
Figure 25.9

Two dungeon rooms controlled by LOD nodes.

25fig09.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
    children [
    # First room
        LOD {
            range [ 20.0 ]
            level [
                Inline { url "droom.wrl" },
                Group { }
            ]
        },
    # Second room
        Transform {
            translation 0.0 0.0 -10.0
            children LOD {
                range [ 20.0 ]
                level [
                    Inline { url "droom.wrl" },
                    Group { }
                ]
            }
        }
    ]
}